//
//  ACBase.h
//  AlarmClock
//
//  Created by kai ren on 24/10/2011.
//  Copyright 2011 none. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
#import "ACAlarm.h"

#define barColor [UIColor colorWithRed:0.4 green:0.25 blue:0 alpha:0.8]
#define Background [UIColor colorWithPatternImage:[UIImage imageNamed:@"background.png"]]
/** Define a color value with alpha **/
#define COLOR_RGB(r, g, b, a) [UIColor	colorWithRed:(CGFloat)r/255.0f green:(CGFloat)g/255.0f blue:(CGFloat)b/255.0f alpha:(CGFloat)a]

@class ACAlarm;

/** Get the full path of document **/
NSString *getDocumentPath();

/** Get contents of document **/
NSArray *getContentsOfDocument();

/** Get the full path of cache key **/
NSString *getFileFullPath(NSString *fileName);

NSString *stringOfRepeat(ACAlarm *alarm);


/** delete afile **/
void deleteFile(NSString *fileName);

/** show status activity indicator **/
void showNetworkActivityIndicator();

/** hidden status activity indicator **/
void hideNetworkActivityIndicator();